<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var zhn={
				"name":"赵浩楠",
				"age":23,
				"height":185,
				"id":11703990132
			};
			
			Object.defineProperties(zhn,{
				//名字不能被删除
				"name":{"configurable":false},
				//年龄不能被删除，不能查看
				"age":{"configurable":false,"enumerable":false},
				//身高不能被删除
				"height":{"configurable": false},
				//id不能被删除，不能被修改
				"id":{"writable":false,"configurable":false}
			})
			
			//尝试删除名字：
			delete zhn.name;
			//尝试删除年龄：
			delete zhn.age;
			//尝试删除身高:
			delete zhn.height;
			//尝试修改id
			zhn.id=10010;
			
			console.log(zhn);
			for(var i in zhn){
				console.log(zhn[i])
			}
			
		</script>
	</body>
</html>
